import request from '@/utils/request'
import BaseUrl from './BaseUrl'

const systemPath = BaseUrl.getDefaultBaseUrl()
const modulePath = systemPath + '/api-file'

export const apiUpload = {
  upload_url: modulePath + '/files-anon',
  upload: function(data) {
    return request({
      url: modulePath + '/files-anon',
      method: 'post',
      data
    })
  }
}
